package com.casework
class Firm {
    String name

    static searchable = true

    void beforeDelete() {
        LegalCase.withNewSession {
            def caseFirm = LegalCaseFirm.findAllByFirm(this)
            caseFirm*.delete()
        }
    }

    @Override
    String toString() {
        return name
    }
}